<%--
  Created by IntelliJ IDEA.
  User: tangyubin
  Date: 15-3-4
  Time: 下午7:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap-theme.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/student.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.js"></script>
</head>
<body style="background:transparent">
    <div class="container">
        <div class="row">
            <form action="submitWork" method="post" enctype="multipart/form-data" class="form-horizontal" role="form" id="submitWork_form">
				<div class="form-group">
					<div class="col-md-6 col-md-offset-3">
						<input type="text" name="title" class="form-control opacity" id="title" placeholder="作品名称">
					</div>
				</div>

				<div class="form-group">
					<div class="col-md-6 col-md-offset-3">
						<select name="workType" id="workType" class="form-control opacity">
							<option value="-1">选择作品类别</option>
							<s:iterator value="workTypeBeans" id="workTypeBean">
								<option value="<s:property value="#workTypeBean.id"/>"><s:property value="#workTypeBean.typeName"/></option>
							</s:iterator>
						</select>
					</div>
					<div id="userType-tips" class="col-md-3"></div>
				</div>
				<div class="form-group">
					<div class="col-md-6 col-md-offset-3">
						<input name="upload" type="file" class="form-control opacity" id="upload">
					</div>
				</div>
				<div class="col-md-6 col-md-offset-3">
					<input type="submit" class="btn btn-info btn-block" id="work-submit"/>
				</div>
				<div class="message">
					<%-- ${requestScope.tips } --%>
					${tips }
					<s:property value="#tips"/>
				</div>
            </form>
        </div>
    </div>
</body>
</html>
